import java.util.Scanner;

import static java.lang.Math.max;

/**
 * Created with IntelliJ IDEA.
 * Description: 笨小猴：判断Lucky Word
 * User: wangxin
 * Date: 2024-09-23
 * Time: 20:47
 */
public class test1 {
    public static boolean isNum(int num){
        if(num == 0||num == 1){
            return false;
        }
        for(int i = 2;i < num;i++){
            if(num % i == 0){
                return false;
            }
            else{
                return true;
            }
        }
        return true;
    }
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        String word  = in.nextLine();
        int[] count = new int[256];
        for(int i = 0;i < word.length();i++){
            count[word.charAt(i)]++;
        }
        int maxn = 0;
        int minn = 256;
        for(int i = 0;i < word.length();i++){
            if(maxn < count[word.charAt(i)]){
                maxn = count[word.charAt(i)];
            }
            if(minn > count[word.charAt(i)]){
                minn = count[word.charAt(i)];
            }
        }
        int c = maxn - minn;
        if(isNum(c)){
            System.out.println("Lucky Word");
            System.out.println(c);
        }else{
            System.out.println("No Answer");
            System.out.println(0);
        }


    }
}
